package CAODemo.Inside;

public class Date2 {
    public int year ;
    public int month ;
    public int day ;
    public Date2() {
        this(2025,2,28);
    }
    public Date2(int year,int month,int day) {
        System.out.println("构造方法");
        this.year = year ;
        this.month = month ;
        this.day = day ;
    }
    public void printDay() {
        System.out.println(year+"."+month+"."+day);
    }
    public static void main(String[] args) {
        Date2 day1 = new Date2() ;
        day1.printDay();
    }
}
